﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TRACv2.Domain.DTO;

//Author: Morgan William Davis III
//Project: TRAC Ticket Manager v2
//Date: 21 Mar 2014

namespace TRACv2.Domain.Test
{
    [TestClass]
    [ExcludeFromCodeCoverage]
    public class EmployeeDTOTest
    {
        [TestMethod]
        public void ToString_TestMethod_ModelStringShouldMatch()
        {
            //Arrange
            var testDTO = new EmployeeDTO
            {
               ID = 1, PersonID = 1, FirstName = "test", LastName = "guy",
               PositionID = 1, Department = "IT", StartDate = DateTime.Now,
               Code = "testCode"
            };
            var modelString = "1:  guy, test.";

            //Act
            var testString = testDTO.ToString();


            //Assert
            Assert.AreEqual(modelString, testString);

        }
    }
}
